package Lesson14;
/*
public class CarDemo {

	public static void main(String[] args) 
	{
		Car c1 = new Car();
		c1.model = "Peugeot";
		c1.color = "silver";
		c1.maxSpeed = 211.3;
		c1.currentSpeed = 55.0;
		c1.currentGear = 4;
		
		System.out.println("I am driving my " + c1.color + "-colored " + c1.model + " at " + c1.currentGear + " gear with " + c1.currentSpeed + " km/h, although it's top speed is " + c1.maxSpeed + " km/h!");
		
		Car c2 = new Car();
		c2.model = "Mercedes";
		c2.color = "black";
		c2.maxSpeed = 266.6;
		c2.currentSpeed = 159.0;
		c2.currentGear = 6;
		
		System.out.println("You are driving your " + c2.color + "-colored " + c2.model + " at " + c2.currentGear + " gear with " + c2.currentSpeed + " km/h, although it's top speed is " + c2.maxSpeed + " km/h!");
		c2.currentSpeed = 60;
		c2.currentGear = 4;
		System.out.println("Oh! Cops!");
		System.out.println("Now you are driving your " + c2.color + "-colored " + c2.model + " at " + c2.currentGear + " gear with " + c2.currentSpeed + " km/h, although it's top speed is " + c2.maxSpeed + " km/h!");
		
		Person mitko = new Person();
		c1.owner = mitko;
		c1.owner.age = 25;
		c1.owner.name = "Gosho";
		System.out.println("The " + c1.color + "-colored " + c1.model + " is owned by the " + c1.owner.age + " years old " + c1.owner.name);
		System.out.println();
		
		Car myPeugeot = new Car();
		myPeugeot.currentGear = 3;
		myPeugeot.color = "Silver";
		myPeugeot.currentSpeed = 60;
		myPeugeot.maxSpeed = 200;
		System.out.println("My car's color is: " + myPeugeot.color);
		myPeugeot.changeColor("black");
		System.out.println("My car's NEW color is: " + myPeugeot.color);
		Person Mitko = new Person();
		myPeugeot.owner = Mitko;
		Mitko.name = "Mitko";
		System.out.println("This car's owner is: " + myPeugeot.owner.name);
		Person Gosho = new Person();
		Gosho.name = "Gosho";
		myPeugeot.changeOwner(Gosho);
		System.out.println("This car's NEW owner is: " + myPeugeot.owner.name);
		
	}

}
*/